package io.github.yidasanqian.content.service;


import io.github.yidasanqian.dto.ContentCategoryDTO;

public interface ContentCategoryService {
    int addContentCategoryNode(long parentId, String name);

    /**
     * 删除分类，就是改节点的状态为2
     *
     * @param id
     * @return
     */
    int deleteContentCategoryNode(long id);

    int updateContentCategoryNode(long id, String name);

    ContentCategoryDTO queryContentCategoryNodeList(long parentId);
}
